import { createApp } from "vue";
import "reset-css";
import App from "./App.vue";
import { initRouter } from "./router";
import { initStore } from "./store";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import "element-plus/es/components/message/style/css";

import * as ElementPlusIconsVue from "@element-plus/icons-vue";

const app = createApp(App);
// 路由初始化
initRouter(app);
// 状态管理初始化
initStore(app);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(ElementPlus);

app.mount("#app");
app.use(ElementPlus);
